package com.donnie.shopping.enums;

/**
 * @description: 水果枚举 <br>
 *      P.S：实际开发时，水果类型会定义为实体，业务数据从数据库，或前端请求中获取，这里为了方便，直接定义在枚举中
 *
 * @author: ChenDeXin
 * @time: 2025/5/20 9:43
 */
public enum Fruit {
    //TODO 添加水果种类扩展
    APPLE,
    STRAWBERRY,
    MANGO;

    //水果价格
    private Double price;

    public void setPrice(Double price) {
        this.price = price;
    }

    public Double getPrice() {
        return price;
    }
}
